﻿using System;
using UnityEngine;
using UnityEngine.Playables;

namespace GameLogic {
    public class TimeLineController : MonoBehaviour {
        public PlayableDirector director;
        private void Start() {
            director = FindObjectOfType<PlayableDirector>();
            director.Play();
            director.playableGraph.GetRootPlayable(0).SetSpeed(0);
        }

        public void PlayTimeLine() {
            director.playableGraph.GetRootPlayable(0).SetSpeed(1);
        }
    }
}